﻿<Window x:Class="DotNETX.Version.Update.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:DotNETX.Version.Update"
        Title="更新程序" Height="100" Width="400" 
        DataContext="{DynamicResource UpdateViewModel}" WindowStartupLocation="CenterScreen" Icon="/DotNETX.Version.Update;component/update.ico">
    <Window.Resources>
        <local:UpdateViewModel x:Key="UpdateViewModel"></local:UpdateViewModel>
    </Window.Resources>
    <Grid>
        <ProgressBar Value="{Binding Progress}" Height="25" VerticalAlignment="Bottom" />
        <Label Content="{Binding Status}" VerticalAlignment="Top" Margin="0,0,66,0" />
        <Label Content="{Binding Progress}" ContentStringFormat="{}{0:0.00}%" HorizontalAlignment="Right" VerticalAlignment="Top" HorizontalContentAlignment="Right" Width="60" />
    </Grid>
</Window>
